# $Id: PKGBUILD 67721 2012-03-14 09:04:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: kmaster <kmaster12@sasktel.net>

pkgname=uudeview
pkgver=0.5.20
pkgrel=10
pkgdesc="UUDeview helps transmitting & receiving binary files using mail or newsgroups. Includes library files."
arch=('i686' 'x86_64')
url="http://www.fpx.de/fp/Software/UUDeview/"
license=('GPL')
optdepends=('tk: for GUI')
source=(http://www.fpx.de/fp/Software/UUDeview/download/$pkgname-$pkgver.tar.gz)
md5sums=('0161abaec3658095044601eae82bbc5b')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
  make prefix=$pkgdir/usr MANDIR=$pkgdir/usr/share/man install
  install -d $pkgdir/usr/lib/uudeview
  install -d $pkgdir/usr/include/uudeview

  cd $srcdir/uudeview-$pkgver/uulib
  ./configure --prefix=/usr
  make
  cp -v *.o $pkgdir/usr/lib/uudeview
  cp -v *.a $pkgdir/usr/lib/uudeview
  cp -v *.h $pkgdir/usr/include/uudeview
}
